#include <fmt/core.h>
#include <spdlog/spdlog.h>

#include <iostream>
#include <nlohmann/json.hpp>

int main()
{
    // 1. fmt 格式化
    std::string msg = fmt::format("{}, {}!", "Hello", "world");
    fmt::print("{}\n", msg);

    // 2. spdlog 日志
    spdlog::set_level(spdlog::level::debug);
    spdlog::info("spdlog info: {}", msg);
    spdlog::debug("spdlog debug: {}", 42);

    // 3. nlohmann-json 序列化 / 反序列化
    nlohmann::json j;
    j["name"] = "conan-cmake-demo";
    j["value"] = 3.14;
    std::cout << "json dump: " << j.dump(2) << '\n';

    return 0;
}